
#ifndef _MEMBER_BGRIDPLANE_H_
#define _MEMBER_BGRIDPLANE_H_

#include <BMesh>
#include <BGridPlane>

#define plane_member(plane)		((member_BGridPlane*)((BGridPlane*)plane)->_ptr)

namespace BWE
{
	class member_BGridPlane
	{
	public:
		member_BGridPlane(BGridPlane* staticPlane);
		~member_BGridPlane();

		BGridPlane*		boss;
		BVector			center;
		BVector			normal;
		BReal			constant;
		BVector			gridSize;
		int				verticalSegments;
		int				horizontalSegments;

		bool			dirty;
		BVectorArray	horPoints;
		BVectorArray	verPoints;
		BColorArray		horColors;
		BColorArray		verColors;

	};
}

#endif